<template>
    <div class="weekend">
        <div class="weekend-title">周末去哪儿</div>
        <ul>
            <li class="item border-bottom" v-for="item of weekendList" :key="item.id">
                <div class="item-img-wrapper"><img width="100%" height="110" :src="item.imgUrl" /></div>
                <div class="item-info">
                    <p class="item-title">{{ item.title }}</p>
                    <p class="item-desc">{{ item.desc }}</p>
                </div>
            </li>
        </ul>
    </div>
</template>

<script type="text/ecmascript-6">
import {$weekend} from '../../../assets/js/common.js'
export default{
    props:{
       weekendList:{
          type:Array
       }
    }
}
</script>

<style lang="stylus" scoped>
@import '../../../assets/styles/mixins.styl'

.weekend-title
    line-height 40px
    background #eee
    text-indent 10px
.item
    display inline-block
    overflow hidden
    .item-img-wrapper
        padding 5px
    .item-info
        padding 0 5px
        min-width 0
        .item-title
            line-height 16px
            font-size 16px
            ellipsis()
        .item-desc
            line-height 26px
            color #ccc
            font-size 13px
</style>
